package com.xbongbong.saas.model;

import com.xbongbong.saas.domain.entity.PromotionProductEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface PromotionProductModel {
   Long insert(PromotionProductEntity entity);

   void insertBatch(List<PromotionProductEntity> list);

   List<PromotionProductEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(PromotionProductEntity entity);

   PromotionProductEntity getByKey(Long key, String corpid);

    Integer deleteByRefId(Long refId, String corpid);

    List<PromotionProductEntity> getProductsByRefId(Long refId, String corpid);

    Integer updateCategorybyProductId(Long categoryId, Long productId, String corpid);
}
